<div class="deal">
<div class="deal_content_top"></div>
<div class="deal_content">
<h3>Danh sách các bài viết</h3>
<table class="table-style" style="width: 100%;" cellpadding="5px"
	cellspacing="0">
	<tbody>
		<tr class="table-title">
			<td><a href="<?php echo $this->baseUrl("index.php/admin_cms/article") ?>?by=article_id&order=<?php echo ($this->by != "article_id" || $this->order == "desc") ? "asc" : "desc"; ?>">ID</a></td>
			<td><a href="<?php echo $this->baseUrl("index.php/admin_cms/article") ?>?by=title&order=<?php echo ($this->by != "title" || $this->order == "desc") ? "asc" : "desc"; ?>">Tiêu đề</a></td>
			<td>&nbsp;</td>
		</tr>
		<?php
		if (count($this->paginator) == 0) {
			echo "<tr><td colspan='3' align='center'>No article</td></tr>";
		} else {
			?>
			<?php $i = 0 ?>
			<?php foreach ($this->paginator as $article): ?>
			<?php $i++ ?>
		<tr class="<?php echo $i % 2 == 0 ? 'even' : 'odd' ?>">
			<td><?php echo $article->article_id ?></td>
			<td><?php echo $article->title ?></td>
			<td align="right"><a
				href="<?php echo $this->baseUrl('index.php/admin_cms/article/edit/id/' . $article->article_id) ?>">
			<img alt="Edit"
				src="<?php echo $this->baseUrl('public/images/edit.png') ?>"> </a> <a
				href="<?php echo $this->baseUrl('index.php/admin_cms/article/delete/id/' . $article->article_id) ?>"
				onclick="if(!confirm('Delete ?',''))return false;"> <img
				alt="Delete"
				src="<?php echo $this->baseUrl('public/images/delete.png') ?>"> </a>
			</td>
		</tr>
		<?php endforeach ?>
		<?php } ?>
	</tbody>
</table>
		<?php echo $this->placeholder('paging') ?>
<p><span class="button"> <a
	href="<?php echo $this->baseUrl('index.php/admin_cms/article/add') ?>">Thêm</a></span></p>
<?php echo $this->paginator; ?>

</div>

<div class="deal_content_bottom"></div>
</div>
